<template>
  <div class="right-container">
    <h3>Right 组件</h3>
    <hr />
    <p>count 值：{{  $store.state.count }}</p>
    <button @click="$store.commit('addCount')" class="btn btn-warning">+1</button>
    <button @click="$store.commit('addCountWithNum', 7)" class="btn btn-warning">+7</button>
    <button @click="$store.dispatch('reqCount', 10, 20)" class="btn btn-warning">调用action-传参</button>

  </div>
</template>

<script>
export default {
  name: 'Right'
}
</script>

<style></style>
